package pl.gwt.client.common;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Project implements Serializable{
	private static final long serialVersionUID = 1L;
	
	String name;
	Date date_start;
	Date date_end;
	String state;
	float price;
	List<ContactPerson> contact_person;
	List<ProjectTask> tasks;
	List<ContactDetails> contacts;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getDate_start() {
		return date_start;
	}

	public void setDate_start(Date date_start) {
		this.date_start = date_start;
	}

	public Date getDate_end() {
		return date_end;
	}

	public void setDate_end(Date date_end) {
		this.date_end = date_end;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public List<ContactPerson> getContact_person() {
		return contact_person;
	}

	public void setContact_person(List<ContactPerson> contact_person) {
		this.contact_person = contact_person;
	}

	public List<ProjectTask> getTasks() {
		return tasks;
	}

	public void setTasks(List<ProjectTask> tasks) {
		this.tasks = tasks;
	}

	public List<ContactDetails> getContacts() {
		return contacts;
	}

	public void setContacts(List<ContactDetails> contacts) {
		this.contacts = contacts;
	}

	public Project(){
		super();
	}
	
	public void init(String name, Date date_start, Date date_end, String state,
			float price, List<ContactPerson> contact_person,
			List<ProjectTask> tasks, List<ContactDetails> contacts) {
		
		this.name = name;
		this.date_start = date_start;
		this.date_end = date_end;
		this.state = state;
		this.price = price;
		this.contact_person = contact_person;
		this.tasks = tasks;
		this.contacts = contacts;
	}
}
